package com.bonc.modules.dial.controller;

import com.bonc.common.utils.Result;
import com.bonc.modules.dial.entity.DialTestProdtCode;
import com.bonc.modules.dial.service.DialTestProdtCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dialTestProdtCode")
public class DialTestProdtCodeController {

    @Autowired
    private DialTestProdtCodeService dialTestProdtCodeService;

    @GetMapping("/getProdtCode")
    @ResponseBody
    public Result getDialTestItemCode(DialTestProdtCode dialTestProdtCode) {
        return Result.ok().put("data", dialTestProdtCodeService.queryDialTestProdtCode(dialTestProdtCode));
    }
}
